
import {get, post,postById} from "@/api/http";

export const dirMenusList = (data) =>
  post("/Menus/GetAllToPage", data);

  export const dirMenusLisByRole = (data) =>
  postById("/Menus/GetAllToPageByRoleID", data);

export const dirMenusDelete = (id) =>
  post("/mg/api/private/menus/delete", {id});


export const dirMenusCreate = (data) =>
  post("/mg/api/private/menus/create", data);

export const dirMenusUpdate = (data) =>
  post("/mg/api/private/menus/update", data);
